#!/bin/bash

echo "解决关机时间过长问题"
echo "将默认的task的等待时间改为10s"
echo 
read -p "回车继续"

sed -i.bak -e 's/#DefaultTimeoutStartSec=90s/DefaultTimeoutStartSec=10s/g' -e 's/#DefaultTimeoutStopSec=90s/DefaultTimeoutStopSec=10s/g' /etc/systemd/system.conf
systemctl daemon-reload
